package com.eternal.framework.binding.viewadapter.radiogroup;

import androidx.databinding.BindingAdapter;
import androidx.annotation.IdRes;

import android.widget.RadioGroup;

/**
 * @author li
 */
public class ViewAdapter {
    @BindingAdapter(value = {"onCheckedChanged"}, requireAll = false)
    public static void onCheckedChanged(final RadioGroup radioGroup, RadioGroup.OnCheckedChangeListener listener) {
        radioGroup.setOnCheckedChangeListener(listener);
    }
}
